export const filterRoute = (allRoutes, userInfo) => {
    // console.log(userInfo.typename);
    let res = allRoutes.filter(v => {
        return v.meta.auth.includes(userInfo)
    })
    console.log(res);
    res.length && res.map(item => {
        if (item.children) {
            item.children = filterRoute(item.children, userInfo)
        }
        return item;
    })
    return res
}